import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import 'element-plus/dist/index.css'
import router from "./router/index.js"
import * as ElIcons  from '@element-plus/icons-vue'
import request from './utils/request'
import store from './store'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import echarts from './utils/echarts'

const app=createApp(App)
app.config.globalProperties.$request = request // 使用globalProperties挂载
app.config.globalProperties.$echarts = echarts;//vue3的挂载方式
app.use(router)
app.use(store)
app.use(ElementPlus, {
	locale: zhCn,
  })
for (let iconName in ElIcons) {
	app.component(iconName, ElIcons[iconName])
}	
app.mount('#app')
